package com.heima.model.common.dtos;

import java.io.Serializable;

/**
 * 分页的通用返回值
 */
public class PageResponseResult extends ResponseResult implements Serializable {
    private Integer currentPage;  //返回当前页
    private Integer size;  //当前页的条数
    private Long total; //总数

    public PageResponseResult(Integer currentPage, Integer size, Long total) {
        this.currentPage = currentPage;
        this.size = size;
        this.total = total;
    }
    public PageResponseResult(Integer currentPage, Integer size, Long total,Object data) {
        this.currentPage = currentPage;
        this.size = size;
        this.total = total;
        this.setData(data);
    }

    public PageResponseResult() {

    }


    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }
}